#!/usr/bin/env python3
"""
Website Operator - 使用main.py方式启动
"""

import kopf
import logging
from website import (
    on_website_create,
    on_website_update,
    on_website_delete,
    on_login,
    on_startup
)

# 配置日志
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

if __name__ == "__main__":
    logger.info("Starting Website Operator...")
    kopf.run()
